home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / STUTTGART / UNIXTOOL / MEMACS / Makefile < prev    next >
Makefile  |  1992-03-05  |  1KB  |  62 lines

  1. # Makefile for Archimedes MicroEmacs 3.11 (beta)
  2.  
  3. # Emacs files
  4.  
  5. OBJ = O.Archimedes O.Basic O.Bind O.Buffer O.Char O.Crypt O.Display O.Eval \
  6.       O.Exec O.File O.Fileio O.Input O.Isearch O.Line O.Main O.Random \
  7.       O.Region O.Riscos O.Screen O.Search O.Tags O.Window O.Word
  8.  
  9. HDR = H.Ebind H.Edef H.Efunc H.Elang H.Epath H.Eproto H.Estruct H.Evar
  10.  
  11. SRC = $(subst O.,C.,$(OBJ))
  12.  
  13. # Any special options?
  14. # Unused args, assumed INT for void functions... Aargh.
  15. CFLAGS = -w
  16.  
  17. # General definitions
  18.  
  19. CMD  = $$.Lib.Emacs
  20. BIN  = $$.Library
  21. LIBS = Lib:Stubs Lib:Utils
  22.  
  23. .PHONY: all install clean clobber
  24.  
  25. %_Z:
  26.  
  27. # ----------------------------------------------------------------------
  28.  
  29. all: Emacs
  30.  
  31. # 3.11 (beta) release command files not ported. Only copy the executable.
  32.  
  33. install: $(BIN).Emacs
  34. #    Copy Cmd.* $(CMD).* SFQ~C~V
  35. #    Access $(CMD).* RL
  36.  
  37. clean:
  38.     $(dolines i,$(OBJ) O.EmacsKeys,Remove $i)
  39.  
  40. clobber: clean
  41.     Remove Emacs
  42.  
  43. # ----------------------------------------------------------------------
  44.  
  45. $(BIN).%: %
  46.     Copy $< $@ SFQ~C~V
  47.     Access $@ RL
  48.  
  49. Emacs: $(OBJ) O.EmacsKeys
  50.     Link $(LINKFLAGS) -o $@ $^ $(LIBS)
  51.     Squeeze $@
  52.  
  53. # ----------------------------------------------------------------------
  54.  
  55. $(OBJ): $(HDR)
  56.  
  57. # ----------------------------------------------------------------------
  58.  
  59. tags: $(SRC) $(HDR)
  60.     Ctags $(SRC) $(HDR)
  61.     @Rename Tags Tags
  62.